﻿<%@ Page Title="" Language="C#" MasterPageFile="~/presentation/MasterPage.Master" AutoEventWireup="true" CodeBehind="DokladForm.aspx.cs" Inherits="ISHotel.presentation.DokladForm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <h2>Doklad o ubytování</h2>
<table frame="box" width="750">
<tr style="font-weight: bold"><td align="left" class="style2">Ubytovávající</td><td align="right">Ubytovaný</td></tr>
<tr><td align="left" class="style2">Hotel a.s.</td><td align="right" width="600"><asp:Label ID="LabelJmenoZakaznika" runat="server"></asp:Label></td></tr>
<tr><td align="left" class="style2">Ulička 1</td><td align="right" width="600"><asp:Label ID="LabelAdresaZakaznika" runat="server"></asp:Label></td></tr>
<tr><td align="left" class="style2">Ostrava 1</td><td align="right" width="600"><asp:Label ID="LabelMestoZakaznika" runat="server"></asp:Label></td></tr>
<tr><td align="left" class="style2">702 00</td><td align="right" width="600"><asp:Label ID="LabelPSCZakaznika" runat="server"></asp:Label></td></tr>
</table>
<br /><br /><br />
<table>
    <tr>
        <td width="200">ID pobytu:</td>
        <td>
            <asp:Label ID="LabelIDPobytu" runat="server"></asp:Label>
        </td>
    </tr>    
    <tr>
        <td>Příjezd:</td>
        <td><asp:Label ID="LabelPrijezd" runat="server"></asp:Label></td>
    </tr>
    <tr>
        <td>Odjezd:</td>
        <td><asp:Label ID="LabelOdjezd" runat="server"></asp:Label></td>
    </tr>
    <tr>
    <td>Počet dní:</td>
    <td><asp:Label ID="LabelPocetDni" runat="server"></asp:Label></td>
    </tr>  
    <tr><td></td><td></td></tr><tr><td></td><td></td></tr>
        <tr>
        <td>Taxa:</td>
        <td>
        <asp:Label ID="LabelTaxa" runat="server"></asp:Label>
        </td>
    </tr>
    <tr>
    <td>Cena taxy(za noc):</td>
    <td>
    <asp:Label ID="LabelCenaTaxy" runat="server"></asp:Label>
    </td>
    
    </tr>
    <tr><td></td><td></td></tr><tr><td></td><td></td></tr>  
    <tr>
        <td>Číslo pokoje:</td>
        <td><asp:Label ID="LabelIDPokoje" runat="server"></asp:Label></td>
    </tr>
    <tr>   
        <td>Cena pokoje(za noc):</td>
        <td><asp:Label ID="LabelCenaPokoje" runat="server"></asp:Label></td>
    </tr>
    <tr><td></td><td></td></tr><tr><td></td><td></td></tr>
    <tr>
        <td>Stravování:</td>
        <td><asp:Label ID="LabelStravovani" runat="server"></asp:Label></td>
    </tr>
    <tr>
        <td>Cena stravování(za noc):</td>
        <td><asp:Label ID="LabelCenaStravovani" runat="server"></asp:Label></td>
    </tr>
</table>
<br />
<div>
    <asp:GridView ID="GridViewSluzby" runat="server" AutoGenerateColumns="False" DataSourceID="ODS_Sluzby"
            DataKeyNames="id_sluzby, id_pobytu" 
        AllowSorting="False">
            <Columns>
                <asp:BoundField DataField="nazev_sluzby" HeaderText="Název služby" SortExpression="nazev_sluzby"
                    ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField DataField="cena_sluzby" HeaderText="Cena služby" SortExpression="cena_sluzby"
                    ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField DataField="mnozstvi_sluzeb" HeaderText="Množství služeb" SortExpression="mnozstvi_sluzeb"
                    ItemStyle-HorizontalAlign="Center" />
            </Columns>
        </asp:GridView>
        <asp:ObjectDataSource ID="ODS_Sluzby" runat="server" SelectMethod="Select" TypeName="ISHotel.Database.ObjednavkaSluzbyTable">         
        </asp:ObjectDataSource>
</div>
<br /><br />
<table>
<tr>
<td width="200"><b>Celková cena k úhradě:</b></td>
<td><asp:Label ID="LabelCelkovaCena" runat="server" Font-Bold="True"></asp:Label></td>
</tr>
<tr><td></td></tr>
<tr><td></td></tr>
<tr>
<td>Doklad vystavil:</td><td>..............</td>
</tr>
<tr>
<td>Datum:</td>
<td><asp:Label ID="LabelDatum" runat="server"></asp:Label></td>
</tr>
</table>



</asp:Content>
